import { createApp } from 'vue'
// import './style.css'

// 引入elementUI
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 引入路由
import router from './router'

// 引入vuex
import store from './store/index.js'

// 引入elementUI的icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 引入初始化less
import './assets/less/index.less'

// 引入mock
import './api/mock.js'

import App from './App.vue'


const app = createApp(App)
app.use(ElementPlus).use(router).use(store)


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')
